<template>
	<view class="tab">
		
		<!-- tab -->
		<view class="c-tabs" style="">
			<c-tabs :list="list" :is-scroll="false" :current="current" @change="change" bar-height="0" bar-width="0" active-color="#FFFF"></c-tabs>
		</view>
		
		<u-grid :col="3" class="grid-list-box">
			
			<u-grid-item class="u-skeleton-fillet" :key="item" v-for="item in 3" >
				<view class="item-box">
					<view class="list-title grid-text"> NO.{{item}} </view>
					<view class="list-number grid-text">185****2124</view>
					<view class="list-cny grid-text">81302.58 CNY</view>
				</view>
			</u-grid-item>
			
		</u-grid>
		
	</view>
</template>

<script>
	import cTabs from './c-tabs/c-tabs.vue'
	
	export default {
		data() {
			return {
				list: [{
					name: '昨日推广排行'
				}, {
					name: '上月推广排行'
				}],
				current: 0
			};
		},
		methods:{
			change(index) {
				this.current = index;
			}
		},
		components: {
		  cTabs
		},
		name: "c-rank"
	}
</script>

<style lang="scss" scoped>
.grid-list-box{
	padding: 0upx 20upx;
	.item-box{
		background-color:#F6F7FC;
		padding: 10upx;
		width: 94%;
		border-radius: 5upx;
	}
	.list-title{
		font-weight: bold;
		font-size: 24upx;
	}
	.list-number{
		color: $u-type-error;
		font-weight: bold;
		font-size: 28upx;
		padding: 10upx 0;
	}

	.list-cny{
		// color: $u-tips-color;
		font-size: 24upx;
		// font-weight: bold;
	}
	
	
}
.c-tabs{
	padding: 0upx 20upx;
}
</style>
